<?php

namespace App\Http\Controllers\home;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

use DB;

class CommentController extends Controller
{
    public function index()
    {
        $config=DB::table('config')->get();
        $list=DB::table('type')->get();
        $comment=DB::table('comment')->join('goods','comment.gid','=','goods.id')->where('uid','=',session()->get('homeuser')->id)->get();
        return view('home.user.comment',['config'=>$config,'list'=>$list,'comment'=>$comment]);
    }
}
